package com.github.phoenics.teacher.itheima.im.common.util;

/**
 * @author Phoenics Chow
 * on 2020年03月06日
 */
public class IdWorker {

    private static SnowFlake snowFlake;

    static {
        snowFlake = new SnowFlake(1, 1);
    }

    public static Long genId() {
        return snowFlake.nextId();
    }
}
